package com.csyf.manager.service;

import com.csyf.manager.entity.SysChannelAttr;
import com.csyf.manager.utils.page.JqGridVo;

import java.util.List;

/**
 * @Author: casper
 * @Description:
 * @Date: Created in 2018/10/27 15:05
 */
public interface SysChannelAttrBiz {

    /**
     * 查询是否存在通道属性
     * @param tradeType
     * @return
     */
    boolean isExistChannel(String tradeType);

    List<SysChannelAttr> findTradeType();

    List<SysChannelAttr> findDfTradeType();

    SysChannelAttr findTradeByService(String serviceName);

    SysChannelAttr findNoServiceByBalanceName(String serviceName);

    SysChannelAttr findDZServiceByBalanceName(String serviceName);

    List<SysChannelAttr> findTradeByBalanceName(String balanceName);

    /**
     * 通道列表
     * @param vo
     * @param page
     * @param rows
     * @return
     */
    JqGridVo queryChannelAttrList(SysChannelAttr vo, Integer page, Integer rows);

    /**
     * 新增产品配置
     * @param channelAttrForm
     */
    void saveChannelAttr(SysChannelAttr channelAttrForm);

    /**
     * 根据service编辑产品类型
     * @param channelAttrForm
     * @return
     */
    int updateByService(SysChannelAttr channelAttrForm);


    List<String> queryAllBalanceName();

    /**
     * 根据service删除产品类型
     * @param service
     * @return
     */
    int deleteByService(String service);

    SysChannelAttr findBalanceNameByChanneNo(String next);
}


